package cn.edu.hhtc.stsystem.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "T_MENU")
public class MenuEntity {
	
	@Id
	@Column(name = "MENU_ID")
	@SequenceGenerator(name = "SEQ_STORE", sequenceName = "SEQ_T_MENU", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_STORE")
	private Long menuId;//菜单编号
	
	@Column(name = "MENU_NAME")
	private String menuName;//菜名
	
	@Column(name = "MENU_PRICE")
	private double menuPrice;//单价

	public MenuEntity() {
		super();
	}

	public MenuEntity(Long menuId, String menuName, double menuPrice) {
		super();
		this.menuId = menuId;
		this.menuName = menuName;
		this.menuPrice = menuPrice;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public double getMenuPrice() {
		return menuPrice;
	}

	public void setMenuPrice(double menuPrice) {
		this.menuPrice = menuPrice;
	}
	
	

}
